Related Vulnerabilities: CVE-2021-41160  

A security issue has been found in FreeRDP before version 2.4.1. A malicious server might trigger out of bound writes in a connected client. Connections using GDI or SurfaceCommands to send graphics updates to the client might send 0 width/height or out of bound rectangles to trigger out of bound writes. With 0 width or heigth the memory allocation will be 0 but the missing bounds checks allow writing to the pointer at this (not allocated) region.

Severity Medium

Remote Yes

Type Arbitrary code execution

Description

A security issue has been found in FreeRDP before version 2.4.1. A malicious server might trigger out of bound writes in a connected client.

Connections using GDI or SurfaceCommands to send graphics updates to the client might send 0 width/height or out of bound rectangles to trigger out of bound writes. With 0 width or heigth the memory allocation will be 0 but the missing bounds checks allow writing to the pointer at this (not allocated) region.

AVG-2488 freerdp 2:2.4.0-2 Medium Vulnerable

https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-7c9r-6r2q-93qg
https://github.com/FreeRDP/FreeRDP/commit/217e0caa181fc1690cf84dd6a3ba1a4f90c02692